Your first(and really bad) mistake is to take cos(30) when 30 is a length NOT an angle. When you calculate sin(x) or cos(x) or tan(x) the "x" needs to be an angle (at this stage anyway). The way to find the third side in a right angle triangle is Pythagoras' rule. I'm assuming you have learnt that.
Before I go on, there are a few ways to do this problem. I need to know if you have learnt the law of sines and the law of cosines. Or have you just learnt the ratios ie sin x = opp/hyp etc? What you have learnt will determine the best way to approach the problem.