Actually Welcome to the Concept of the Linear equations.
Let the number of bicycles = x
and number of tricycles = y
the relationship given is,
x = 5y-1
number of wheels of bicycle = 2x and of tricycles=3y
and other relation is, 2x+3y = 154
so now substituting we get as,
==> 2(5y-1) +3y= 154
10y-2+3y = 154
13y = 154+2
=> y = 12
=> 12*3 = 36 wheels of tricycles
so, 154-36 => 118 wheels of the bicycle.
so the number of bicycles = 118/2 = 59
hence,
==> number of bicycles = 59 and tricycles = 12