solve i
solve j