Given the task definition and input, reply with output. The task is to generate the correct answer for a given math problem.

Problem: the ratio of the number of females to males at a party was 1 : 2 but when 7 females and 7 males left , the ratio became 1 : 3 . how many people were at the party originally ?
42