Solve 3 and 7