Convert mixed number to improper fraction:

The expected length of code for one encoded symbol is

where
is the probability of picking the letter
, and
is the length of code needed to encode
.
is given to us, and we have

so that we expect a contribution of

bits to the code per encoded letter. For a string of length
, we would then expect
.
By definition of variance, we have
![\mathrm{Var}[L]=E\left[(L-E[L])^2\right]=E[L^2]-E[L]^2](https://tex.z-dn.net/?f=%5Cmathrm%7BVar%7D%5BL%5D%3DE%5Cleft%5B%28L-E%5BL%5D%29%5E2%5Cright%5D%3DE%5BL%5E2%5D-E%5BL%5D%5E2)
For a string consisting of one letter, we have

so that the variance for the length such a string is

"squared" bits per encoded letter. For a string of length
, we would get
.
(6x-18)(x+4)/(3x-9)=6(x-3)(x+4)/3(x-3)=2(x+4)=2x+8
X + y = 180
x = 4y
Plug that in and you get: 4y + y = 180
5y = 180
y = 36
If you want the larger angle, simply plug in y to x = 4y
So: x = 4(36) = 144
The smaller angle is 36 degrees, and the larger angle is 144 degrees.
The diagonals of a parallelogram bisect each other so
4x - 7 = x + 2 and
5y - 8 = 3y
4x - 7 = x + 2 so 3x = 9 and x = 3
5y - 8 = 3y so 2y = 8 and y = 4