4sin pi/6 + 3tg^2 pi/4 + ctg^2 pi/4 + 2cos pi/3 = 4sin pi/6 + 3 * (tg pi/4)^2 + (ctg pi/4)^2 + 2cos pi/3 = 4 * 1/2 + 3 * 1^2 + 1^2 + 2 * 1/2 = 4/2 + 3 + 1 + 2/2 = 2 + 4 + 1 = 7.
4sin pi/6 + 3tg^2 pi/4 + ctg^2 pi/4 + 2cos pi/3 = 4sin pi/6 + 3 * (tg pi/4)^2 + (ctg pi/4)^2 + 2cos pi/3 = 4 * 1/2 + 3 * 1^2 + 1^2 + 2 * 1/2 = 4/2 + 3 + 1 + 2/2 = 2 + 4 + 1 = 7.