Digital colors: why RGB instead of RYG? We know that Red, Yellow, Blue are primary colors. Any other color can be created by mixing these color. Graphical representation is below:

But when I began to learn about computers, I noticed that Green is used as Primary color instead of Yellow! Why is it like that, cause in above wheel Green is secondary color which can be made by mixing Blue & Yellow! Is there any scientific reason behind it?
 A: When we mix colours such as paint together, the colours block out parts of the spectrum when they are mixed, this is called a subtractive colour system. Red, Yellow, and Blue; being primary colours in a subtractive colour system, create black when they are all mixed together because all parts of the spectrum are blocked out (absorbed) by the three colours.
When we deal with light however, the opposite is true. When beams of two different colours of light are placed on top of each other, a new colour is formed by adding the spectrum of one colour to that of another, this is known as an additive colour system because the parts of spectrums are added, when beams of Red, green, and Blue light (RGB primary colours) are placed on top of each other, the result is white light.
The reason that there are different systems is because subtractive (RYB) system is used to describe physical objects and how they interact with light to produce colour and additive colour systems on the other hand involves the colour of light itself.
The phenomenon  I have explained above can be seen below.

