If the goaltending happened first, you award the basket and call the PC foul. I do not know what a "restricted" throw-in is. Team B is allowed to throw in the ball anywhere along the end line.
Peace
So I am assuming that if the PC foul occured first, the goaltending would be ignored?
__________________
Failure is fertile ground on which to plant new seeds.