let us say that t = time so that for horizontal motion:
t = distance / velocity * cos angle
t = 2.5 / v cos 45
while for the vertical motion, (s = height = 20 cm = 0.20m, t = time, g = gravity)
s = ut - 0.5 gt^2
0.2 = v sin 45 * 2.5 / v cos 45 - 0.5 * 9.81 * [2.5 / v cos 45] ^2
0.2= 2.5 tan 45 - 61.31 / v^2
61.31 / v^2 = 2.5 - 0.2 = 2.3
v = 5.16 m/s