ahh its assignment then
its up to you to sigure out [even the prob is not hard]
anyway for the starting point make two classes
like this
i think you are prety aware with making constructors and things

class customer{
String name;
double loadAmt;
double salary;
}
class loan{}

just try to solve oit, do the maths part and post when there's an error