It all depends on what your goals are.
Im no expert but 5 x 5 is for strength and 3 x 10 is more muscular endurance/hypertrophy.
Read the stickies pal.
Bill stars 5 x 5 is very good, as if Ripptoes starting strength.
There is also a post been made earlier about a beginners compound workout, its basic and will ensure gains provided the right technique is used and generally good diet is followed.