Touching always proceeds catching, so the touching happens before the catch, during a loose ball play.
The basic spot for a loose ball play is the previous spot (B30). Because the foul happened in advance of the basic spot, the basic spot is also the enforcement spot.
Five yards and loss of down from the B30 results in B's ball, 1-10 at the B35.