<span>y = 10x * sin(x)
y' = 10 * (x * cos(x) + sin(x))
x = pi/2
y' = 10 * ((pi/2) * cos(pi/2) + sin(pi/2)) = 10 * ((pi/2) * 0 + 1) = 10 * 1 = 10
y - 5pi = 10 * (x - (pi/2))
y - 5pi = 10x - 5pi
y = 10x</span>
Blue beads: 100/130, which reduces to 10/13.
Red beads: 20/130, which reduces to 2/13.
You're just taking the fraction of the certain color of beads compared with the total number of beads, which is 130.