x is the price for one basket and that will be the constant of proportionality
if we multiply x times the number of baskets we will obtain the cost
so the equation for each number of basket will be
3x= 12
5x=20
6x=24
we can solve one equation in order to know the constant
for example the equation with 5 baskets
x=20/5
x=4
the constant of proportionality is x=4
the correct answer is D