Let x be the cost for the small pizza and y the cost for the medium one. We know that 3 small ones and 3 medium ones cost $51, this can be express as:
[tex]3x+3y=51[/tex]we also know that 5 small ones and 2 medium ones cost $55, this means that:
[tex]5x+2y=55[/tex]Then we have the system of equations:
[tex]\begin{gathered} 3x+3y=51 \\ 5x+2y=55 \end{gathered}[/tex]Multipliyng the first equation by 2 and the second by -3 we have:
[tex]\begin{gathered} 6x+6y=102 \\ -15x-6y=-165 \end{gathered}[/tex]Adding the equations we have:
[tex]\begin{gathered} -9x=-63 \\ x=\frac{-63}{-9} \\ x=7 \end{gathered}[/tex]Once we know the value of x we plug it in the first equation and solve for y, then:
[tex]\begin{gathered} 3(7)+3y=51 \\ 21+3y=51 \\ 3y=30 \\ y=10 \end{gathered}[/tex]Hence, a small pizza cost $7 and a medium one cost $10.
now that we have the cost of each of them we can obtained the cost for 3 small and 2 medium:
[tex]3(7)+2(10)=41[/tex]Therefore, 3 small and 2 medium pizzas cost $41. The answer is C.