Here's a hint: solve the primary problem