At position 2, Stan had right of way under Rule 10 over both Pete and Tanya. He was required by Rule 14 to avoid contact with Pete if it was reasonably possible to do so, and he did - by bearing away below Pete. Also, when he changed course, he was obligated to do so without breaking Rule 16.1, and he did. Stan broke no rule.
Tanya initially held right of way over Pete under Rule 10 and over Stan under Rule 12. While Tanya was changing course from a closehauled starboard-tack course to head to wind, she was obligated by Rule 16.1 to give Stan and Pete room to keep clear, which she did. From the time she turned past head to wind during her tack until she was on a closehauled port-tack course, Rule 13 required her to keep clear of both Pete and Stan, which she did. After she was on a closehauled port-tack course, she was required by Rule 11 to keep clear of Pete and by Rule 10 to keep clear of Stan, which she did. Rule 15 did not apply to Tanya after she tacked because, by tacking, she did not acquire right of way. Rule 16.1 did not apply to Tanya after she turned past head to wind because at that moment she lost right of way over both Pete and Stan, and Rule 16.1 applies only to a right of way boat. Therefore, Tanya broke no rule.