Mathematically speaking. Imagine you are a model (No not that kind, figure 8 ones)
Bias is simply how biased you are, Now you are a Nigerian, And you are asked "Which nationality have the most beautiful women" you say Nigerian Ladies, we can say its because you are biased. so your formula is $Y = WX + nigerian$.
So what do you understand? Biased is that pre-assumption in a model like you have.
As for weight, logically speaking, Weight is your Gradient(a in linear algebra),
What is Gradient?, it's the steepness of the Linear function.
What makes the linear gradient very steep (High positive value)?
It's because little changes in X(input) causes Large differences in Y axis(output). So you (Not as a Model anymore, but a brilliant Mathematician (your alter ego)) or your Computer tries to find this gradient, which you can call weight. The difference is that you use a pencil and graph book to find this, but the black box does its electronic Magic with registers.
In the Machine Learning Process, computer or you tries to draw many straight lines or Linear functions across the data points,
Why do you try to draw many straight lines?
Because in your graph book/Computer memory, you are trying the see the line that fit approprately.
How do I or Computer know the line that fits appropriately?
In my secondary school, i was taught to draw a line across the data points, visually checking the line that cuts through perfectly in the middle of all the data point.(Forget those A.I hype, our brains can calculate by just staring at things). But as for computer, it tries the standard deviation and variance of each line towards the data points. The line with the least deviation(sometimes will call it error function) is choosen.
Cool! so and what happens
The gradient of that line is calculated, lets say the Weight of the Learning problem is Calculated
thats Machine Learning at its basic understand and a high school student ploting graph in his/her Graphbook