We have the following:
To solve the problem we must plan a system of equations of two equations with two unknowns
let x numbers of 2-point baskets
let y numbers of 3-point backets

solving the system:

for y:

The answer is 38 2-point baskets and 7 3-point baskets, the option B