Maria is planning a party and wants to serve an equal number of cupcakes and cookies. She buys cupcakes in packages of 5 and cookies in packages of 7. What is the smallest number of packages of each that she needs to buy to have an equal number of cupcakes and cookies? Let's think step by step and output the final answer within \boxed{}.
user