If the first one is required, the number of participants must be subtracted from the total number of participants in mathematics and Chinese.
(22+ 12)-26=8 (person)
Finding the second one is very simple, that is, 45 people MINUS the number of participants.
45-26= 19 (person)
A: Eight people participated in both events, and 19 people did not participate in both events.
I hope my answer is helpful to you. If you are satisfied, please adopt me. Thank you!