strictly speaking, you can assume that WLOG

for some i, but not for all. However this proof can be executed just by focusing on one prime number, say p, rather than all of them. Notice also that the equation is symmetric in the variables proving it for one prime power is enough since the primes only 'interact' with themselves. (
Another way to justify using only one prime power is to notice that gcd(x,y)*gcd(z,w)=gcd(xz,zw) if x and z are relatively prime; w and y are relatively prime, and likewise for lcm).
by request, my soln (probably the same):
let

and assume WLOG that

lcm(a,b,c)=max(A,B,C)=C
lcm(a,b)=B
lcm(a,c)=C
lcm(b,c)=C
gcd(a,b,c)=min(A,B,C)=A
gcd(a,b)=A
gcd(a,c)=A
gcd(b,c)=B
plugging these values in we see the equation is true as both sides become 1/B.
Now if we do this on all the individual 'pure prime powers' the equation is true, since p was arbitrary and we can always do the WLOG thing since the equation is symmetric, and so we can relabel as we like and it won't change the truth of the equation.
Now you can multiply all these equations together to get one big equation, which changes it into the equation for a,b,c using the fact:
"gcd(x,y)*gcd(z,w)=gcd(xz,zw) if x and z are relatively prime; w and y are relatively prime, and likewise for lcm"Notice that B is the middle number (again showing some nice symmetry

). So yeah, actually just do your big general approach, works best, and then split it into a product into many little products that involve only the single prime, and then just prove that for each of these products, you get the 'middle number' both for lcm and gcd. and yeah result easily follows from here. (this is ussually a good approach, to focus on single primes and then take the product of all the singles).
ie for clarity:
}}{p_i^{min(e_i,f_i)}p_i^{min(g_i,f_i)}p_i^{min(e_i,g_i)}})

where

is the 'middle number' for

.
And same thing for LHS.