The saturated formula would be C8H18, and thus the given formula C8H10 has 4 degrees of unsaturation.
And each degree of unsaturation CORRESPONDS to an olefinic bond, i.e. C=C OR a RING JUNCTION.

And thus the pictured xylene, as well as any one of its other 2 isomers (which are?) could correspond to the formula. And by my count xylene has 8×C−C σ bonds, 10×C−H σ bonds, and, formally, 3×C−C π bonds.........
By joining and fusing rings, we could form a structure where the distinction between σ and π bonds are less ambiguous, however, these would be less common structures than the benzene derivative.
Note that the degree of unsaturation is a very useful criterion with which to assess organic molecules.