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

Array of struct:

struct speedRpm {
  uint32_t speed;
  uint32_t rpm;
};

speedRpm dataSamples[4];