Team A is inbounding the ball under team B basket. Team A player receives the inbound pass and is confused and drives to the wrong basket which confuses a team B defensive player who attempts to stop the drive and gets called for a foul. What happens next? Does team A get free throws at the other end of the court?