I kind of knew that I should trade the bishop, but I didn’t know how to continue after that, so I thought about the line Qxd5. It turned out that Qxd5 should come after Bxe7 because after Qxd5, e6 cannot take the queen and I would have gotten two bishops.