The sentence that requires revision to maintain a formal style is:
"Quakers like William Penn wouldn't pay taxes to support wars because they were against it, and this made people angry."
A more formal revision might state:
"Quakers, including William Penn, refrained from paying taxes to support wars due to their pacifist beliefs, which often resulted in public discontent."