First, I'm not sure what you mean by saying the angles are 30 degrees. The interior angles of an equilateral triangle are all 60 degrees. (They have to add up to 180, remember?). But a turtle has to turn through the exterior angles (the supplements of these), which are 120 degrees.
The other thing you need to figure out is how far to move the turtle in between drawing the triangles. This is the length of a side of the hexagon that circumscribes your star. With a bit of geometry, you can figure out that this length is the length of a side of the triangle divided by the square root of 3.
Here's some Logo code for you (that's got to be better than pseudo-code, right?)
TO Star6 :size
; Draw First Triangle
REPEAT 3 [FD :size RT 120]
; Reposition for Second Triangle
PU
RT 90
FD :size / SQRT 3
LT 90
PD
; Draw Second Triangle
REPEAT 3 [FD :size LT 120]
; Return to starting position
PU
LT 90
FD :size / SQRT 3
RT 90
PD
END
; Draw some stars of various sizes and colors
CS
SETCOLOR "Red
Star6 50
SETCOLOR "Green
Star6 100
SETCOLOR "Blue
Star6 200
You can play with it at this online Logo interpreter:
http://www.calormen.com/logo/