Let n be a number of friends at the perty. If dinner costs $30 per person, then it cost $30n for all friends.
Robert has booked a banquet hall which costs $200, then his total expenses are $200+30n.
If the final bill is p, then p=200+30n.
Answer: p=200+30n.