Step-by-step explanation:
The kinetic energy is due to the motion of the object.
The potential energy is due to the position of the object.
When a basketball is thrown upward then the kinetic energy decreases and the potential energy will be maximum when it will reach its maximum height.
When it starts falling then potential energy starts decreases due to the decrease in the height and the kinetic energy starts increases.