Clalculating effective value of square waveform
There are two sections in the waveform that are not 0V then, I assume the waveform repeats. If you are calculating RMS then add the squares of the non-0V sections to get 100 + 4 = 104. Then, divide by baselength of 4 to get 26. Then take the square root to get 5.1V RMS.

For average it's 10 - 2 then divided by 4 = 2V