• + 0 comments
    let applesOnRange = apples.map(apple=>apple+a)
        .filter(apple=>apple>=s&&apple<=t).length
    
    let orangesOnRange = oranges.map(orange=>orange+b)
        .filter(orange=>orange>=s&&orange<=t).length
    
    console.log(applesOnRange + "\n" + orangesOnRange)