Error = Value with error - Correct value
Error = 24-30 = -6
(Note tha the minus sign means the value is less than the correct value)
[tex]\text{ \%error = }\frac{\text{error}}{\text{True value}}\text{ x 100\%}[/tex][tex]=\frac{6}{30}\text{ x 100\% = 20\%}[/tex]