A pizza place charges a flat fee for each pizza and a delivery fee. One customer buys 3 pizzas and pays $41. Another pays $29 for two pizzas.

Write a linear function for this situation (use p for the number of pizzas).