Answer: 10m + x
Let m be the number of the medium pizza
Let x be the number of each topping
Total cost = amount charged per each medium of the pizza x the number of the pizza + amount charged per each topping x the number of each topping
Total cost = 10 * m + 1 * x
Total cost = 10m + x