Answer:
x =  12      ( two points shots )
y =  7       ( three points shots )
Step-by-step explanation:
Let´s call  "x" two points shots,  and  "y" three points shots, then
x  +  y  =  19
2*x  +  3*y  =  45
We have to solve a two-equation system for x and y
y =  19  - x
2*x  +  3 * ( 19 - x ) = 45
2*x  +  57  -  3*x   =  45
- x   =  45 - 57
-x   =  - 12
x  = 12
And     y  =  19  -  12
y  = 7