Diego I. answered 04/19/21
Python, Machine Learning, Deep Learning and Data Science Tutor.
x is the number of 2-pointers
y is the number of 3-pointers
Solve the linear equations:
x + y = 24 (total number of shots is 24)
2*x + 3*y = 54 (total score is 54)
We solve with substitutions:
from first equation we have x=24-y
and we replace it on equation 2:
2*(24-y) + 3*y = 54
y = 6
x = 18. (24 - y)
Answer: 18 2-pointers and 6 3-pointers