Solve p87