In inches, the height of the rim is 10*12 = <<10*12=120>>120 inches.
Thus, the height that the player needs to be able to reach is 120 + 6 = <<120+6=126>>126 inches.
Without jumping, the player can reach their height plus an additional 22 inches, or a total of 6*12 + 22 = <<6*12+22=94>>94 inches.
Therefore, the player needs to jump 126 - 94 = <<126-94=32>>32 inches to reach the height required to dunk a basketball.
#### 32