This is a standard type of puzzle and you need to work out the solution by a combination of trial and error and logic.

So what have you tried, noticed, ...?

To get you started because of the sum in the ones column B must be even, and because of the 1000's column giving a carry B must be greater than or equal to 5, so B is 6 or 8.

Suppose B is 8, then from the 1000's column we see that E is 5 or 6, but if E were 5 B would be 0, so that is impossible. If E were 6 B would be 2 which is also impossible. Suppose E is 6, then E is 2 or 3, E being 3 is consistent with B being 6. So we conclude that B is 6 and E is 3.

CB