How to work with 4 sets of data and 2 variables?

struct