solve (log