Narrating the episode, Bart looks back upon his failures with girls, particularly Mary Spuckler. At Springfield Elementary School, Bart realizes that Mary has returned to Springfield and has been welcomed back to her family after the events of "Moonshine River". Though they pursue a relationship, Bart fails to pay enough attention to Mary and is instead focused on video games. Despite Lisa's warnings, Bart continues to take Mary for granted until she tells him that they should take a break. Bart recognizes the expression as a warning sign for a potential breakup. Additionally, she starts showing interest in a prosperous boy from Brazil. Eventually, it becomes clear to Bart that Mary has broken up with him, after she sings a breakup song to him over the phone.
During an argument between Homer and Marge, Bart takes Homer's side, arguing that men cannot be expected to understand women when women never come out and say what they are thinking. In response, Marge tells Homer exactly what she thinks of him, leading to both Bart and Homer being kicked out of the house. The two promptly settle into Brokewood Apartments, an apartment for failed husbands who were kicked out by their wives. Bart and Homer initially become accustomed to their new situation, but the two, along with all of the other husbands, soon realize that they have to win their loves back, which they learn to do by watching British rom-com movies. Taking this into play, Bart, Homer, and the husbands invite Mary, Marge, and the other wives over to the apartment and sing to the tune of The Ode to Joy. It wins the hearts of every women except for Mary, who has started dating the Brazilian boy. The episode ends with Lisa informing Bart that women should not be taken for granted, and afterwards, Bart visits a social media site, where he sees Mary's relationship status change to "single", and he sends a message to her reading, "I miss you." In a post-credits scene, he receives a video call from Mary (newly widowed).